package com.food.user.service;

import com.alipay.api.AlipayApiException;
import com.food.user.dto.OrderDetailDto;
import com.food.user.dto.OrderListDto;
import com.food.user.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.food.user.form.CreateOrderForm;

import java.util.List;

/**
 * <p>
 * 外卖订单 服务类
 * </p>
 *
 * @author 帅得一
 * @since 2023年06月17日
 */
public interface OrderService extends IService<Order> {

    void createOrder(CreateOrderForm form) throws Exception;

    List<OrderListDto> select();

    OrderDetailDto viewDetail(String orderNum) throws Exception;

    String pay(String num) throws AlipayApiException;

    void payback();

    void success(String num) throws Exception;
}
